home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / A-B / 7 Balloons!.cpt / Balloons! / cards.xml < prev    next >
Text File  |  1991-08-28  |  60KB  |  1,182 lines

  1. card_6726.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>6726</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_7395.pbm</bitmap>
  8.     <cantDelete> <false /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>3999</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_3303.css" />
  13.     <part>
  14.         <id>1</id>
  15.         <type>field</type>
  16.         <visible> <true /> </visible>
  17.         <dontWrap> <false /> </dontWrap>
  18.         <dontSearch> <false /> </dontSearch>
  19.         <sharedText> <false /> </sharedText>
  20.         <fixedLineHeight> <true /> </fixedLineHeight>
  21.         <autoTab> <false /> </autoTab>
  22.         <lockText> <true /> </lockText>
  23.         <rect>
  24.             <left>12</left>
  25.             <top>63</top>
  26.             <right>500</right>
  27.             <bottom>301</bottom>
  28.         </rect>
  29.         <style>scrolling</style>
  30.         <autoSelect> <false /> </autoSelect>
  31.         <showLines> <false /> </showLines>
  32.         <wideMargins> <true /> </wideMargins>
  33.         <multipleLines> <false /> </multipleLines>
  34.         <reservedFamily> 0 </reservedFamily>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>0</icon>
  37.         <textAlign>left</textAlign>
  38.         <font>Geneva</font>
  39.         <textSize>12</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <textHeight>16</textHeight>
  42.         <name>Error Messages</name>
  43.         <script></script>
  44.     </part>
  45.     <content>
  46.         <layer>card</layer>
  47.         <id>1</id>
  48.         <text><span class="style7">on-Error Return Values:</span><span class="style2"></span><span class="style3">"Balloons XFCN, version 1.0, ¬©James P. Spencer, 1991"</span><span class="style2">This is returned when the only parameter is "!".</span><span class="style3">"Balloons ("!"|"?"|"On"|"Off"|"Remove"|"isOn"|"Show|ShowPICT|ShowSTR|ShowSTRlist", stringToShow|resourceID|"resourceID,itemNumber", tipLocation[, version, alternativeRect])"</span><span class="style2">This is returned when the only parameter is "?"</span><span class="style3">"true""false"</span><span class="style2">One of these values is returned when the only parameter is "isOn."  "true" indicates that Balloon Help is currently on, while "false" indicates that it is off.</span><span class="style7">Error Messages:</span><span class="style2"></span><span class="style3">"ERROR: Number of parameters is incorrect. You can use Balloons("?") to check your syntax."</span><span class="style2">This is returned whenever the number of parameters is not 1, 3, 4, or 5.</span><span class="style3">"ERROR: unknown error in checking for Help Manager presence: xxx"</span><span class="style2">This message will be returned whenever Balloons() is unable to determine that the Help Manager is present.  xxx is usually an operating system error code as returned by Gestalt(). Normally, this will occur when the user is running under System 6.x, in which circumstance Gestalt returns an unimplemented selector error (-5551).  Another possibility is that Gestalt returned OK but determined that the Help Manager was not present, in which case xxx will be "No Help".  These two variations should not be considered true errors. The stack author should simply use the information to avoid wasted calls to Balloons() when the Help Manager is not present.  Any other error probably indicates something seriously wrong.</span><span class="style3">"ERROR: HMRemoveBalloon returned xxx"</span><span class="style2">Returned when the only parameter is "Remove" and the Help Manager has failed in trying to comply.  xxx is an operating system error code returned by the Help Manager and probably indicates something seriously wrong.  Note that this message should not be returned when all that has happened is that user tried to remove a balloon when none existed.  See the next error message.</span><span class="style3">"ERROR: Tried to remove balloon when there isn't one in existance."</span><span class="style2">Returned when the only parameter is "Remove" and there was no balloon to remove.  This is provided mostly for script debugging and does not necessarily mean there is anything wrong.</span><span class="style3">"ERROR: HMSetBalloons(TRUE) returned xxx""ERROR: HMSetBalloons(FALSE) returned xxx"</span><span class="style2">These two messages are returned when the only parameter is either "On" or "Off" respectively and the Help Manager has failed in its attempt to either turn balloons on or off.  xxx is an operating system error code and probably indicates a serious problem.</span><span class="style3">"ERROR: Syntax Error. You can use Balloons("?") to check your syntax."</span><span class="style2">This is returned when the number of parameters is correct but Balloons() does not recognize the first parameter as a valid selector. Remember that selectors are case sensitive; you will get this error if capitalization or spelling is not exactly as you see it in this stack. Note that, because of the way HyperCard handles parameters, most of the other parameters will not generate syntax errors.  Instead, the parameters will be converted to some kind of usable value and either the wrong balloon will show up in the wrong place, or an error code will be returned by the attempt to show the balloon.  (See below.)One error that should especially be watched for is passing an invalid 5th parameter for the alternativeRect.  Because this will almost certainly be evaluated as a rectangle nowhere near the object for which you want Balloon Help, the Help Manager will assume that you have moved your mouse out of the alternativeRect and will return the error code -853.  In most implementations, a return of -853 will cause the script to recall Balloons() again which will merely return -853 forever.  (See below.)</span><span class="style3">"ERROR: Syntax error: The version parameter must be between 0 and 7."</span><span class="style2">Returned when an optional 4th parameter is passed that is not between 0 and 7 (there are only 8 variations to the standard balloon.)</span><span class="style3">"ERROR: HMShowBalloons() returned xxx "</span><span class="style2">Returned when there are 3, 4, or 5 parameters and Balloons() was able to evaluate all of them, but the actual attempt to show a balloon failed.  xxx is an operating system error code returned by the Help Manager.  For resource-based calls, the most likely error is -192, meaning the Help Manager could not read in the resource, probably because it doesn't exist.</span><span class="style3">"-853"</span><span class="style2">The only true error code which is not preceded by the word "ERROR:", -853 is returned even when all parameters are correct. It does not normally reflect a true error condition; rather, the Help Manager assumes that if the mouse is still moving it may only be passing through the object of interest, and the Help Manager will refuse to put up the balloon.  -853 means that at the time of the call to Balloons() the mouse was not still long enough; to compensate, the script should call Balloons again. If your balloons do not display reliably, this error is a likely cause. See the scripts in this stack for examples of how to compensate for -853 errors.Note that if you use the scripts within this stack and you pass an alternativeRect which doesn't contain the mouse, the Help Manager will presume that the mouse was just moved out of the alternativeRect and will return -853 every time Balloons() is called, resulting in an endless loop.</span></text>
  49.     </content>
  50.     <name>Error Messages/Return Values</name>
  51.     <script>on closeCardset the scroll of cd fld "error messages" to 0end closeCard</script>
  52. </card>
  53.  
  54.  
  55. card_6352.xml
  56. <?xml version="1.0" encoding="utf-8" ?>
  57. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  58. <card>
  59.     <id>6352</id>
  60.     <filler1>0</filler1>
  61.     <bitmap>BMAP_7045.pbm</bitmap>
  62.     <cantDelete> <false /> </cantDelete>
  63.     <showPict> <true /> </showPict>
  64.     <dontSearch> <false /> </dontSearch>
  65.     <owner>3999</owner>
  66.     <link rel="stylesheet" type="text/css" href="stylesheet_3303.css" />
  67.     <part>
  68.         <id>3</id>
  69.         <type>field</type>
  70.         <visible> <true /> </visible>
  71.         <dontWrap> <false /> </dontWrap>
  72.         <dontSearch> <false /> </dontSearch>
  73.         <sharedText> <false /> </sharedText>
  74.         <fixedLineHeight> <false /> </fixedLineHeight>
  75.         <autoTab> <false /> </autoTab>
  76.         <lockText> <false /> </lockText>
  77.         <rect>
  78.             <left>135</left>
  79.             <top>174</top>
  80.             <right>227</right>
  81.             <bottom>193</bottom>
  82.         </rect>
  83.         <style>rectangle</style>
  84.         <autoSelect> <false /> </autoSelect>
  85.         <showLines> <false /> </showLines>
  86.         <wideMargins> <false /> </wideMargins>
  87.         <multipleLines> <false /> </multipleLines>
  88.         <reservedFamily> 0 </reservedFamily>
  89.         <titleWidth>0</titleWidth>
  90.         <icon>0</icon>
  91.         <textAlign>left</textAlign>
  92.         <font>Geneva</font>
  93.         <textSize>12</textSize>
  94.         <textStyle>plain</textStyle>
  95.         <textHeight>16</textHeight>
  96.         <name>resourceID</name>
  97.         <script></script>
  98.     </part>
  99.     <part>
  100.         <id>4</id>
  101.         <type>field</type>
  102.         <visible> <true /> </visible>
  103.         <dontWrap> <false /> </dontWrap>
  104.         <dontSearch> <false /> </dontSearch>
  105.         <sharedText> <false /> </sharedText>
  106.         <fixedLineHeight> <false /> </fixedLineHeight>
  107.         <autoTab> <false /> </autoTab>
  108.         <lockText> <false /> </lockText>
  109.         <rect>
  110.             <left>135</left>
  111.             <top>198</top>
  112.             <right>499</right>
  113.             <bottom>268</bottom>
  114.         </rect>
  115.         <style>rectangle</style>
  116.         <autoSelect> <false /> </autoSelect>
  117.         <showLines> <false /> </showLines>
  118.         <wideMargins> <false /> </wideMargins>
  119.         <multipleLines> <false /> </multipleLines>
  120.         <reservedFamily> 0 </reservedFamily>
  121.         <titleWidth>0</titleWidth>
  122.         <icon>0</icon>
  123.         <textAlign>left</textAlign>
  124.         <font>Geneva</font>
  125.         <textSize>12</textSize>
  126.         <textStyle>plain</textStyle>
  127.         <textHeight>16</textHeight>
  128.         <name>theString</name>
  129.         <script></script>
  130.     </part>
  131.     <part>
  132.         <id>5</id>
  133.         <type>field</type>
  134.         <visible> <true /> </visible>
  135.         <dontWrap> <false /> </dontWrap>
  136.         <dontSearch> <false /> </dontSearch>
  137.         <sharedText> <false /> </sharedText>
  138.         <fixedLineHeight> <false /> </fixedLineHeight>
  139.         <autoTab> <false /> </autoTab>
  140.         <lockText> <false /> </lockText>
  141.         <rect>
  142.             <left>135</left>
  143.             <top>275</top>
  144.             <right>402</right>
  145.             <bottom>296</bottom>
  146.         </rect>
  147.         <style>rectangle</style>
  148.         <autoSelect> <false /> </autoSelect>
  149.         <showLines> <false /> </showLines>
  150.         <wideMargins> <false /> </wideMargins>
  151.         <multipleLines> <false /> </multipleLines>
  152.         <reservedFamily> 0 </reservedFamily>
  153.         <titleWidth>0</titleWidth>
  154.         <icon>0</icon>
  155.         <textAlign>left</textAlign>
  156.         <font>Geneva</font>
  157.         <textSize>12</textSize>
  158.         <textStyle>plain</textStyle>
  159.         <textHeight>16</textHeight>
  160.         <name>resourceName</name>
  161.         <script></script>
  162.     </part>
  163.     <part>
  164.         <id>6</id>
  165.         <type>button</type>
  166.         <visible> <true /> </visible>
  167.         <reserved5> 0 </reserved5>
  168.         <reserved4> 0 </reserved4>
  169.         <reserved3> 0 </reserved3>
  170.         <reserved2> 0 </reserved2>
  171.         <reserved1> 0 </reserved1>
  172.         <enabled> <true /> </enabled>
  173.         <rect>
  174.             <left>187</left>
  175.             <top>309</top>
  176.             <right>328</right>
  177.             <bottom>331</bottom>
  178.         </rect>
  179.         <style>transparent</style>
  180.         <showName> <false /> </showName>
  181.         <highlight> <false /> </highlight>
  182.         <autoHighlight> <true /> </autoHighlight>
  183.         <sharedHighlight> <true /> </sharedHighlight>
  184.         <family>0</family>
  185.         <titleWidth>0</titleWidth>
  186.         <icon>0</icon>
  187.         <textAlign>center</textAlign>
  188.         <font>Chicago</font>
  189.         <textSize>12</textSize>
  190.         <textStyle>plain</textStyle>
  191.         <name>Create The String</name>
  192.         <script>on mouseUpput cd fld "resourceID" into resourceIDput cd fld "theString" into theStringput cd fld "resourceName" into theNameput cd fld "theFile" into theFileif ((resourceID < 0) or (resourceID > 32000)) thenanswer "Resource ID must be between 0 and 32000."select text of cd fld "resourceID"exit mouseUpend ifif theName is empty then put " " into theNameCreateSTR theFile, resourceID, theString, theNameif the result <> empty then answer the resultend mouseUpon mouseEnterShowABalloon "After filling in these fields, " ¬¨& "click here to create a STR resource which will be stored " ¬¨& "in the indicated stack. You can use this resource with Balloons() " ¬¨& "when using "&quote&"ShowSTR"&quote&" as the Selector. The " ¬¨& "script of this button contains an example of " ¬¨& quote&"CreateSTR."&quoteend mouseEnteron mouseLeaveRemoveABalloonend mouseLeave</script>
  193.     </part>
  194.     <part>
  195.         <id>8</id>
  196.         <type>button</type>
  197.         <visible> <true /> </visible>
  198.         <reserved5> 0 </reserved5>
  199.         <reserved4> 0 </reserved4>
  200.         <reserved3> 0 </reserved3>
  201.         <reserved2> 0 </reserved2>
  202.         <reserved1> 0 </reserved1>
  203.         <enabled> <true /> </enabled>
  204.         <rect>
  205.             <left>244</left>
  206.             <top>173</top>
  207.             <right>337</right>
  208.             <bottom>195</bottom>
  209.         </rect>
  210.         <style>transparent</style>
  211.         <showName> <false /> </showName>
  212.         <highlight> <false /> </highlight>
  213.         <autoHighlight> <true /> </autoHighlight>
  214.         <sharedHighlight> <true /> </sharedHighlight>
  215.         <family>0</family>
  216.         <titleWidth>0</titleWidth>
  217.         <icon>0</icon>
  218.         <textAlign>center</textAlign>
  219.         <font>Chicago</font>
  220.         <textSize>12</textSize>
  221.         <textStyle>plain</textStyle>
  222.         <name>Choose File</name>
  223.         <script>on mouseUpanswer file "Select file in which to store STR resource:" of type STAKif it is empty then exit mouseUpput it into cd fld "theFile"put lpc(it) into cd fld "shortFileName"end mouseUpon mouseEnterShowAString 1517,,2end mouseEnteron mouseLeaveRemoveABalloonend mouseLeavefunction lpc thePathput empty into temprepeat until last char of thePath = ":"if last char of thePath <> quotethen put last char of thePath before tempdelete last char of thePathend repeatreturn tempend lpc-- ShowAString handler is located in the script of this background</script>
  224.     </part>
  225.     <part>
  226.         <id>9</id>
  227.         <type>field</type>
  228.         <visible> <false /> </visible>
  229.         <dontWrap> <false /> </dontWrap>
  230.         <dontSearch> <false /> </dontSearch>
  231.         <sharedText> <false /> </sharedText>
  232.         <fixedLineHeight> <false /> </fixedLineHeight>
  233.         <autoTab> <false /> </autoTab>
  234.         <lockText> <true /> </lockText>
  235.         <rect>
  236.             <left>342</left>
  237.             <top>174</top>
  238.             <right>499</right>
  239.             <bottom>193</bottom>
  240.         </rect>
  241.         <style>rectangle</style>
  242.         <autoSelect> <false /> </autoSelect>
  243.         <showLines> <false /> </showLines>
  244.         <wideMargins> <false /> </wideMargins>
  245.         <multipleLines> <false /> </multipleLines>
  246.         <reservedFamily> 0 </reservedFamily>
  247.         <titleWidth>0</titleWidth>
  248.         <icon>0</icon>
  249.         <textAlign>left</textAlign>
  250.         <font>Geneva</font>
  251.         <textSize>12</textSize>
  252.         <textStyle>plain</textStyle>
  253.         <textHeight>16</textHeight>
  254.         <name>theFile</name>
  255.         <script></script>
  256.     </part>
  257.     <part>
  258.         <id>10</id>
  259.         <type>field</type>
  260.         <visible> <true /> </visible>
  261.         <dontWrap> <false /> </dontWrap>
  262.         <dontSearch> <false /> </dontSearch>
  263.         <sharedText> <false /> </sharedText>
  264.         <fixedLineHeight> <false /> </fixedLineHeight>
  265.         <autoTab> <false /> </autoTab>
  266.         <lockText> <true /> </lockText>
  267.         <rect>
  268.             <left>342</left>
  269.             <top>174</top>
  270.             <right>499</right>
  271.             <bottom>193</bottom>
  272.         </rect>
  273.         <style>rectangle</style>
  274.         <autoSelect> <false /> </autoSelect>
  275.         <showLines> <false /> </showLines>
  276.         <wideMargins> <false /> </wideMargins>
  277.         <multipleLines> <false /> </multipleLines>
  278.         <reservedFamily> 0 </reservedFamily>
  279.         <titleWidth>0</titleWidth>
  280.         <icon>0</icon>
  281.         <textAlign>left</textAlign>
  282.         <font>Geneva</font>
  283.         <textSize>12</textSize>
  284.         <textStyle>plain</textStyle>
  285.         <textHeight>16</textHeight>
  286.         <name>ShortFileName</name>
  287.         <script>on mouseEntershowABalloon "The stack name in this field shows where the new " ¬¨& "STR resource will be stored. Change the name by clicking the " ¬¨& "Choose File button.",,5end mouseEnteron mouseLeaveRemoveABalloonend mouseLeave</script>
  288.     </part>
  289.     <content>
  290.         <layer>background</layer>
  291.         <id>3</id>
  292.         <text><span class="style2">reateSTR is an XCMD, included in this stack, which permits the creation of STR resources without leaving HyperCard. You can use these STR resources in your own stacks with Balloons() when "ShowSTR" is the Selector. This card may be used to create and store STR resources in any of your own stacks; however, </span><span class="style3">if you would like to copy the CreateSTR XCMD to another stack, be sure to read the warning at the bottom of this field!</span><span class="style2">In the current version, 1.0, the syntax variations are:CreateSTR "!"    -- returns version information in "the result"CreateSTR "?"   -- returns syntax information in "the result"</span><span class="style3">CreateSTR theFile, resourceID, theString[, resourceName] </span><span class="style2">-- creates an STR resource and stores it in the resource fork of the indicated stacktheFile can be any file. If it is not in the same folder as the current stack, you need to provide a full path name.  The easiest way to do this is with the "answer file" command provided by HyperCard, as shown in the script of the "Choose File:" button below. If theFile is empty, the string will be put into the stack containing the XCMD (in this case, the Balloons stack.)</span><span class="style3"></span><span class="style2">The resource ID can be any integer between 0 and 32000. If there is already an existing STR resource with the chosen ID number, a dialog box is presented giving you the choice of 1) cancelling the request to create the resource, 2) changing the ID number of the new STR resource, or 3) replacing the existing STR resource with the new one you are creating.theString can be any HyperCard container or string literal.resourceName is optional and should be a short string describing the resource.  If nothing is passed, the STR resource will have no name.You can create STR resources from this card. First click "Choose File:" and choose the stack in which you wish to store the STR resource. Fill in the remaining fields below and click the "Create the String" button. The STR resource will be stored in the resource fork of the stack indicated in the Choose File field. </span><span class="style3">WARNING:</span><span class="style2"> If you are going to copy the CreateSTR XCMD to another stack, you must also copy the DLOG and DITL resources (both with ID's number 1514.)  If these resources aren't present and you try to create an STR when there is already an existing STR with the same ID, you will crash </span><span class="style12">very</span><span class="style2"> comprehensively.</span></text>
  293.     </content>
  294.     <content>
  295.         <layer>card</layer>
  296.         <id>10</id>
  297.         <text>Balloons!</text>
  298.     </content>
  299.     <name>Create Strings</name>
  300.     <script>on closeCardput empty into cd fld "theFile"pass closeCardend closeCardon openCardput the short name of this stack into cd fld "shortFileName"pass openCardend openCard</script>
  301. </card>
  302.  
  303.  
  304. card_5879.xml
  305. <?xml version="1.0" encoding="utf-8" ?>
  306. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  307. <card>
  308.     <id>5879</id>
  309.     <filler1>0</filler1>
  310.     <bitmap>BMAP_6409.pbm</bitmap>
  311.     <cantDelete> <false /> </cantDelete>
  312.     <showPict> <true /> </showPict>
  313.     <dontSearch> <false /> </dontSearch>
  314.     <owner>3999</owner>
  315.     <link rel="stylesheet" type="text/css" href="stylesheet_3303.css" />
  316.     <part>
  317.         <id>1</id>
  318.         <type>button</type>
  319.         <visible> <true /> </visible>
  320.         <reserved5> 0 </reserved5>
  321.         <reserved4> 0 </reserved4>
  322.         <reserved3> 0 </reserved3>
  323.         <reserved2> 0 </reserved2>
  324.         <reserved1> 0 </reserved1>
  325.         <enabled> <true /> </enabled>
  326.         <rect>
  327.             <left>168</left>
  328.             <top>224</top>
  329.             <right>354</right>
  330.             <bottom>246</bottom>
  331.         </rect>
  332.         <style>transparent</style>
  333.         <showName> <false /> </showName>
  334.         <highlight> <false /> </highlight>
  335.         <autoHighlight> <true /> </autoHighlight>
  336.         <sharedHighlight> <true /> </sharedHighlight>
  337.         <family>0</family>
  338.         <titleWidth>0</titleWidth>
  339.         <icon>0</icon>
  340.         <textAlign>center</textAlign>
  341.         <font>Chicago</font>
  342.         <textSize>12</textSize>
  343.         <textStyle>plain</textStyle>
  344.         <name>Balloon Versions Reference</name>
  345.         <script>on mouseUppicture 5002,"resource",plainend mouseUpon mouseEntershowABalloon "Click here to see the different balloon versions "¬¨& "available for use with Balloons() XFCN."end mouseEnteron mouseLeaveRemoveABalloonend mouseLeave</script>
  346.     </part>
  347.     <content>
  348.         <layer>background</layer>
  349.         <id>3</id>
  350.         <text><span class="style2">ach of the Standard Display Calls can take one or two optional parameters:   - Fourth parameter: Version: a number between 0 and 7 indicating the preferred shape and location of the balloon's tip. To see the possible balloon variations, click the "Balloon Versions Reference" button on this card.   - Fifth parameter: alternativeRect: a HyperCard rectangle used to create a "hot rectangle."These parameters are described in detail below.</span><span class="style10">Version</span><span class="style1"></span><span class="style2">The fourth parameter, which is optional, must be a number between 0 and 7 which indicates the </span><span class="style9">perferred</span><span class="style2"> version of the balloon to be used. The balloon versions vary in appearance by where on the balloon the tip is located and the direction in which it points. To see the possible Version variations, click the "Balloon Versions Reference" button on this card.Note that the Version is simply the </span><span class="style9">perferred</span><span class="style2"> style. The XFCN (via the Help Manager) may move the balloon or change its style to ensure that the balloon appears on screen and hides as little of the object of interest as possible. If no alternativeRect is passed (see below,) the requested Version will usually be used. It will only change the Version if necessary to keep the balloon on the screen.If no Version is passed or an empty parameter is passed, the Version defaults to style 0, which seems to look the best most of the time.</span><span class="style10">AlternativeRect</span><span class="style1"></span><span class="style2">The alternativeRect is the "hot rectangle" which specifies the area the mouse must be in for a balloon to be displayed. Generally in the case of buttons and fields, you will want this to be the rect of the object and may choose not to pass an alternativeRect, using instead "mouseEnter" and "mouseLeave" scripts to control the appearance and removal of balloons. Except for a few fields (like this one,) this is how balloons are controlled for all the objects in this stack. There is one advantage, however, to passing an alternativeRect parameter. If you pass an alternativeRect, the balloon is automatically removed when the mouse leaves the "hot rectangle," with no need to call Balloons("Remove").The alternativeRect is optional and can be omitted even when a Version is passed, so the following is legal:put Balloons("Show", myMessage, theTip, 5)  into helpResult This would display the string in myMessage at the point in theTip, preferably using balloon version number 5.If you want to indicate an alternativeRect but no Version, then an empty parameter must be passed in the Version position:put Balloons("Show", myMessage, theTip,,myRectangle) into helpResultThis is equivalent to:put Balloons("Show", myMessage, theTip,0,myRectangle) into helpResult</span></text>
  351.     </content>
  352.     <name>Optional Parameters</name>
  353.     <script></script>
  354. </card>
  355.  
  356.  
  357. card_5335.xml
  358. <?xml version="1.0" encoding="utf-8" ?>
  359. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  360. <card>
  361.     <id>5335</id>
  362.     <filler1>0</filler1>
  363.     <bitmap>BMAP_6043.pbm</bitmap>
  364.     <cantDelete> <false /> </cantDelete>
  365.     <showPict> <true /> </showPict>
  366.     <dontSearch> <false /> </dontSearch>
  367.     <owner>3999</owner>
  368.     <link rel="stylesheet" type="text/css" href="stylesheet_3303.css" />
  369.     <content>
  370.         <layer>background</layer>
  371.         <id>3</id>
  372.         <text><span class="style2">ollowing are the standard calls to Balloons() which actually display a help balloon. There are three required parameters for each call:   -First parameter: "Selector": the selector tells Balloons() what method it should use to display the balloon.   - Second parameter: "Message": information about the message to be shown in the balloon.  The contents and form of the Message depend on the Selector.   - Third parameter: "Tip": a point (h,v) in card coordinates (i.e. local coordinates) indicating the desired location of the tip of the balloon. When no optional parameters are passed, the tip of the balloon will always appear at the requested point. (Optional parameters are discussed on the next card.)Both the Message and Tip can be in any HyperCard container and the container passed instead of the actual value.Remember that Selectors are case sensitive and must be typed exactly as you see them in the examples below. If you have Balloon Help tuned on, you may click on any bolded example to see a representative balloon or return value:</span><span class="style10">Balloons("Show", myMessage, Tip)</span><span class="style1"></span><span class="style2">The "Show" Selector is used to show a HyperCard string contained in myMessage. This can be done either by putting the message into a container and passing the container, e.g.:put "This is an example of a string to be shown by Balloons XFCN" into myMessageput Balloons("Show",myMessage, the loc of target) into helpResultor by passing it directly:put Balloons("Show",¬¨"This is an example of directly passing a string to be shown by Balloons()",¬¨the loc of the target) into helpResult</span><span class="style10">Balloons("ShowPICT", PictID, Tip)</span><span class="style1"></span><span class="style2">The "ShowPICT" Selector is used to display a PICT resource whose resource ID is contained in PictID. For example:put the loc of the target into Tipput Balloons("ShowPICT", 1513, Tip) into helpResult</span><span class="style10">Balloons("ShowSTR", STRID, Tip)</span><span class="style1"></span><span class="style2">The "ShowSTR" Selector is used to show an STR resource whose resource ID is contained in STRID. For example:put the loc of the target into Tipput Balloons("ShowSTR", 1513, Tip) into helpResult</span><span class="style10">Balloons("ShowSTRList", "STRListID, index", Tip)</span><span class="style1"></span><span class="style2">The "ShowSTRList" Selector is used to show a  string contained in an STR# (string list) resource. The Message parameter is a HyperCard string containing two items: the STR# resource ID, and the desired string's index (its position in the STR# resource.) These two items must be separated by a comma.  For example, if you wanted to display the second string in STR# resource ID 1513, you would script:put 1513 && "," && 2 into myMessageput the loc of the target into Tipput Balloons("ShowSTRList", myMessage, Tip) into helpResult</span></text>
  373.     </content>
  374.     <name>Standard Display Calls</name>
  375.     <script>on doDisplayglobal isSixif isSix then errorMsgif the textstyle of the clickline = "bold" thenput "1515" into PICTIDput "This is an example Help message." into myMessageput "1515" into STRIDput ((the left of fld "info") + 250) & "," ¬¨& the clickV into tipput 1514 into STRListIDput 3 into indexput the rect of fld "info" into altRectsubtract 18 from item 3 of altRect -- scroll barput parseLine(value(the clickLine)) into balloonMsgdo "put " & balloonMsg & "into fld helpMessage"end ifend doDisplayfunction parseLine theLine -- add alternativeRect to paramsdelete last char of theLineput ",,altRect)" after theLinereturn theLineend parseLine</script>
  376. </card>
  377.  
  378.  
  379. card_4575.xml
  380. <?xml version="1.0" encoding="utf-8" ?>
  381. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  382. <card>
  383.     <id>4575</id>
  384.     <filler1>0</filler1>
  385.     <bitmap>BMAP_5473.pbm</bitmap>
  386.     <cantDelete> <false /> </cantDelete>
  387.     <showPict> <true /> </showPict>
  388.     <dontSearch> <false /> </dontSearch>
  389.     <owner>3999</owner>
  390.     <link rel="stylesheet" type="text/css" href="stylesheet_3303.css" />
  391.     <content>
  392.         <layer>background</layer>
  393.         <id>3</id>
  394.         <text><span class="style2">ach utility call takes a single parameter only. There are no optional parameters. It is important to note that these parameters are case sensitive and must be typed exactly as you see them in the examples below; otherwise, a syntax error will be returned. Because Balloons() is an XFCN it will always return a result, which will be empty if all went well. The correct syntax for utility calls follows the form:put Balloons("On") into helpResultYou will then probably want to test the result:if helpResult is not empty then     put helpResult into the message boxend ifFollowing are the utility calls for Balloons(). You may click on any bolded example to see a return value:</span><span class="style10">Balloons("!")</span><span class="style1"></span><span class="style2">Returns a string with version and copyright information</span><span class="style10">Balloons("?")</span><span class="style1"></span><span class="style2">Returns a string with abbreviated syntax help</span><span class="style10">Balloons("isOn")</span><span class="style1"></span><span class="style2">Returns either "true" or "false", indicating whether Balloon Help is currently on.  A single call to "isOn" can also determine if Balloon Help (i.e., the Help Manager) is present, as an error message will be returned if it is not.</span><span class="style10">Balloons("On")</span><span class="style1"></span><span class="style2">Turns Balloon Help on. This is the same as selecting "Show Balloons" from the Help menu. If Balloon Help is already on, it has no effect. Note that this affects </span><span class="style9">all</span><span class="style2"> applications, not just HyperCard, so if the author turns Balloon Help on with this, she has an obligation to turn it back off when HyperCard is not the active application any longer.</span><span class="style10">Balloons("Off")</span><span class="style1"></span><span class="style2">Turns Balloon Help off. This is the same as selecting "Hide Balloons" from the Help menu. If Balloon Help is already off, this has no effect.</span><span class="style10">Balloons("Remove")</span><span class="style1"></span><span class="style2">If a balloon is showing, this removes it from the screen. If there is no balloon showing, an error message is returned for diagnostic purposes, unless Balloon Help is turned off.</span></text>
  395.     </content>
  396.     <name>Utility Calls</name>
  397.     <script>on doDisplayglobal isSixif isSix then errorMsgif the textstyle of the clickline = "bold" thendo "put " & value(the clickLine) & "into fld helpMessage"end ifend doDisplay</script>
  398. </card>
  399.  
  400.  
  401. card_4139.xml
  402. <?xml version="1.0" encoding="utf-8" ?>
  403. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  404. <card>
  405.     <id>4139</id>
  406.     <filler1>0</filler1>
  407.     <bitmap>BMAP_4908.pbm</bitmap>
  408.     <cantDelete> <false /> </cantDelete>
  409.     <showPict> <true /> </showPict>
  410.     <dontSearch> <false /> </dontSearch>
  411.     <owner>3999</owner>
  412.     <link rel="stylesheet" type="text/css" href="stylesheet_3303.css" />
  413.     <part>
  414.         <id>2</id>
  415.         <type>button</type>
  416.         <visible> <true /> </visible>
  417.         <reserved5> 0 </reserved5>
  418.         <reserved4> 0 </reserved4>
  419.         <reserved3> 0 </reserved3>
  420.         <reserved2> 0 </reserved2>
  421.         <reserved1> 0 </reserved1>
  422.         <enabled> <true /> </enabled>
  423.         <rect>
  424.             <left>345</left>
  425.             <top>177</top>
  426.             <right>421</right>
  427.             <bottom>199</bottom>
  428.         </rect>
  429.         <style>transparent</style>
  430.         <showName> <false /> </showName>
  431.         <highlight> <false /> </highlight>
  432.         <autoHighlight> <true /> </autoHighlight>
  433.         <sharedHighlight> <true /> </sharedHighlight>
  434.         <family>0</family>
  435.         <titleWidth>0</titleWidth>
  436.         <icon>0</icon>
  437.         <textAlign>center</textAlign>
  438.         <font>Chicago</font>
  439.         <textSize>12</textSize>
  440.         <textStyle>plain</textStyle>
  441.         <name>Syntax</name>
  442.         <script>on mouseUpput Balloons("?") into fld "helpMessage"end mouseUpon mouseEnterShowABalloon "Click on this to see brief information "¬¨& "on the syntax for Balloons().  Also note the variation "¬¨& "code and the use of the "&quote&"?"&quote&" parameter used in " ¬¨& "the button script.",,5end mouseEnteron mouseLeaveRemoveABalloonend mouseLeave</script>
  443.     </part>
  444.     <part>
  445.         <id>4</id>
  446.         <type>button</type>
  447.         <visible> <true /> </visible>
  448.         <reserved5> 0 </reserved5>
  449.         <reserved4> 0 </reserved4>
  450.         <reserved3> 0 </reserved3>
  451.         <reserved2> 0 </reserved2>
  452.         <reserved1> 0 </reserved1>
  453.         <enabled> <true /> </enabled>
  454.         <rect>
  455.             <left>425</left>
  456.             <top>177</top>
  457.             <right>501</right>
  458.             <bottom>199</bottom>
  459.         </rect>
  460.         <style>transparent</style>
  461.         <showName> <false /> </showName>
  462.         <highlight> <false /> </highlight>
  463.         <autoHighlight> <true /> </autoHighlight>
  464.         <sharedHighlight> <true /> </sharedHighlight>
  465.         <family>0</family>
  466.         <titleWidth>0</titleWidth>
  467.         <icon>0</icon>
  468.         <textAlign>center</textAlign>
  469.         <font>Chicago</font>
  470.         <textSize>12</textSize>
  471.         <textStyle>plain</textStyle>
  472.         <name>Version</name>
  473.         <script>on mouseUpput Balloons("!") into fld "helpMessage"end mouseUpon mouseEnterShowABalloon "Click here for copyright and "¬¨& "version information. See the button script for an example "¬¨& "of the use of the "&quote&"!"&quote&"  parameter.",,5end mouseEnteron mouseLeaveRemoveABalloonend mouseLeave</script>
  474.     </part>
  475.     <part>
  476.         <id>8</id>
  477.         <type>button</type>
  478.         <visible> <true /> </visible>
  479.         <reserved5> 0 </reserved5>
  480.         <reserved4> 0 </reserved4>
  481.         <reserved3> 0 </reserved3>
  482.         <reserved2> 0 </reserved2>
  483.         <reserved1> 0 </reserved1>
  484.         <enabled> <true /> </enabled>
  485.         <rect>
  486.             <left>13</left>
  487.             <top>177</top>
  488.             <right>95</right>
  489.             <bottom>199</bottom>
  490.         </rect>
  491.         <style>transparent</style>
  492.         <showName> <false /> </showName>
  493.         <highlight> <false /> </highlight>
  494.         <autoHighlight> <true /> </autoHighlight>
  495.         <sharedHighlight> <true /> </sharedHighlight>
  496.         <family>0</family>
  497.         <titleWidth>0</titleWidth>
  498.         <icon>0</icon>
  499.         <textAlign>center</textAlign>
  500.         <font>Chicago</font>
  501.         <textSize>12</textSize>
  502.         <textStyle>plain</textStyle>
  503.         <name>ShowSTR# 1</name>
  504.         <script>on mouseUpput "Balloons("&quote&"ShowSTRList"&quote&", STRResourceID, tip[, version, alternativeRect])" ¬¨into fld "helpMessage"end mouseUpon mouseEnter-- This displays item 1 of STR# resource ID number 1514-- Note that it differs from the mouseEnter handler for-- "ShowSTR# 2" only in the item number to be displayed.ShowASTRList 1514,1,,6end mouseEnteron mouseLeaveRemoveABalloonend mouseLeave-- ShowASTRList handler is located in the script of this background</script>
  505.     </part>
  506.     <part>
  507.         <id>9</id>
  508.         <type>button</type>
  509.         <visible> <true /> </visible>
  510.         <reserved5> 0 </reserved5>
  511.         <reserved4> 0 </reserved4>
  512.         <reserved3> 0 </reserved3>
  513.         <reserved2> 0 </reserved2>
  514.         <reserved1> 0 </reserved1>
  515.         <enabled> <true /> </enabled>
  516.         <rect>
  517.             <left>100</left>
  518.             <top>177</top>
  519.             <right>182</right>
  520.             <bottom>199</bottom>
  521.         </rect>
  522.         <style>transparent</style>
  523.         <showName> <false /> </showName>
  524.         <highlight> <false /> </highlight>
  525.         <autoHighlight> <true /> </autoHighlight>
  526.         <sharedHighlight> <true /> </sharedHighlight>
  527.         <family>0</family>
  528.         <titleWidth>0</titleWidth>
  529.         <icon>0</icon>
  530.         <textAlign>center</textAlign>
  531.         <font>Chicago</font>
  532.         <textSize>12</textSize>
  533.         <textStyle>plain</textStyle>
  534.         <name>ShowSTR# 2</name>
  535.         <script>on mouseUpput "Balloons("&quote&"ShowSTRList"&quote&", STRResourceID, tip[, version, alternativeRect])" ¬¨into fld "helpMessage"end mouseUpon mouseEnter-- This displays item 2 of STR# resource ID number 1514-- Note that it differs from the mouseEnter handler for-- "ShowSTR# 1" only in the item number to be displayed.ShowASTRList 1514,2,,6end mouseEnteron mouseLeaveRemoveABalloonend mouseLeave-- ShowASTRList handler is located in the script of this background</script>
  536.     </part>
  537.     <part>
  538.         <id>10</id>
  539.         <type>button</type>
  540.         <visible> <true /> </visible>
  541.         <reserved5> 0 </reserved5>
  542.         <reserved4> 0 </reserved4>
  543.         <reserved3> 0 </reserved3>
  544.         <reserved2> 0 </reserved2>
  545.         <reserved1> 0 </reserved1>
  546.         <enabled> <true /> </enabled>
  547.         <rect>
  548.             <left>186</left>
  549.             <top>177</top>
  550.             <right>262</right>
  551.             <bottom>199</bottom>
  552.         </rect>
  553.         <style>transparent</style>
  554.         <showName> <false /> </showName>
  555.         <highlight> <false /> </highlight>
  556.         <autoHighlight> <true /> </autoHighlight>
  557.         <sharedHighlight> <true /> </sharedHighlight>
  558.         <family>0</family>
  559.         <titleWidth>0</titleWidth>
  560.         <icon>0</icon>
  561.         <textAlign>center</textAlign>
  562.         <font>Chicago</font>
  563.         <textSize>12</textSize>
  564.         <textStyle>plain</textStyle>
  565.         <name>ShowPICT</name>
  566.         <script>on mouseUpput "Balloons("&quote&"ShowPICT"&quote&", pictResourceID, tip[, Version, AlternativeRect])" ¬¨into fld "helpMessage"end mouseUpon mouseEnterput calcTip() into tipput Balloons("ShowPICT", 1514, tip) into helpResultput helpResult into fld "helpMessage"repeat until "-853" is not in helpResultput Balloons("ShowPICT", 1513, tip) into helpResultput helpResult into fld "helpMessage"end repeatend mouseEnteron mouseLeaveRemoveABalloonend mouseLeave</script>
  567.     </part>
  568.     <part>
  569.         <id>11</id>
  570.         <type>button</type>
  571.         <visible> <true /> </visible>
  572.         <reserved5> 0 </reserved5>
  573.         <reserved4> 0 </reserved4>
  574.         <reserved3> 0 </reserved3>
  575.         <reserved2> 0 </reserved2>
  576.         <reserved1> 0 </reserved1>
  577.         <enabled> <true /> </enabled>
  578.         <rect>
  579.             <left>266</left>
  580.             <top>177</top>
  581.             <right>342</right>
  582.             <bottom>199</bottom>
  583.         </rect>
  584.         <style>transparent</style>
  585.         <showName> <false /> </showName>
  586.         <highlight> <false /> </highlight>
  587.         <autoHighlight> <true /> </autoHighlight>
  588.         <sharedHighlight> <true /> </sharedHighlight>
  589.         <family>0</family>
  590.         <titleWidth>0</titleWidth>
  591.         <icon>0</icon>
  592.         <textAlign>center</textAlign>
  593.         <font>Chicago</font>
  594.         <textSize>12</textSize>
  595.         <textStyle>plain</textStyle>
  596.         <name>ShowSTR</name>
  597.         <script>on mouseUpput "Balloons("&quote&"ShowSTR"&quote&", STRResourceID, tip[, version, alternativeRect])" ¬¨into fld "helpMessage"end mouseUpon mouseEnterShowAString 1514,,6end mouseEnteron mouseLeaveRemoveABalloonend mouseLeave-- ShowAString handler is located in the script of this background</script>
  598.     </part>
  599.     <content>
  600.         <layer>background</layer>
  601.         <id>3</id>
  602.         <text><span class="style2">alloons() XFCN is an external function which allows the objects in your stacks to display help balloons when the stack is run with System 7.0 or higher. To use the XFCN, you must copy the Balloons XFCN to your stack using either ResEdit or ResCopy. Once installed, use the scripts and function calls described in this stack to display your own help balloons.The many ways you may call Balloons() are explained later in detail, but brief examples are included here for quick reference. Click the balloon button above to turn on Balloon Help, and examine the balloons and scripts of the buttons below.Balloons() XFCN may be used to make two types of calls: general utility calls and display calls. General utility calls control the XFCN itself (turning on Balloon Help, for example) and use the syntax:</span><span class="style3">Balloons(Utility Call)</span><span class="style2">The Balloons() XFCN also uses display calls, which may be used to specifically display and manipulate various types of help balloons. Display calls use the syntax:</span><span class="style3">Balloons("Selector","Message","Tip"[,"Version","AlternativeRect"])</span><span class="style2">It is important to note that the "Selector" parameter is case sensitive and must be typed exactly as you see it in the example fields of this stack.</span></text>
  603.     </content>
  604.     <name>General Syntax</name>
  605.     <script>on RemoveABalloonget Balloons("Remove")if it is not empty thenput it into fld "helpMessage"end ifend RemoveABalloon</script>
  606. </card>
  607.  
  608.  
  609. card_7651.xml
  610. <?xml version="1.0" encoding="utf-8" ?>
  611. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  612. <card>
  613.     <id>7651</id>
  614.     <filler1>0</filler1>
  615.     <bitmap>BMAP_7820.pbm</bitmap>
  616.     <cantDelete> <false /> </cantDelete>
  617.     <showPict> <true /> </showPict>
  618.     <dontSearch> <false /> </dontSearch>
  619.     <owner>2740</owner>
  620.     <link rel="stylesheet" type="text/css" href="stylesheet_3303.css" />
  621.     <part>
  622.         <id>6</id>
  623.         <type>field</type>
  624.         <visible> <true /> </visible>
  625.         <dontWrap> <false /> </dontWrap>
  626.         <dontSearch> <false /> </dontSearch>
  627.         <sharedText> <false /> </sharedText>
  628.         <fixedLineHeight> <true /> </fixedLineHeight>
  629.         <autoTab> <false /> </autoTab>
  630.         <lockText> <true /> </lockText>
  631.         <rect>
  632.             <left>126</left>
  633.             <top>128</top>
  634.             <right>384</right>
  635.             <bottom>252</bottom>
  636.         </rect>
  637.         <style>rectangle</style>
  638.         <autoSelect> <false /> </autoSelect>
  639.         <showLines> <false /> </showLines>
  640.         <wideMargins> <false /> </wideMargins>
  641.         <multipleLines> <false /> </multipleLines>
  642.         <reservedFamily> 0 </reservedFamily>
  643.         <titleWidth>0</titleWidth>
  644.         <icon>0</icon>
  645.         <textAlign>center</textAlign>
  646.         <font>Geneva</font>
  647.         <textSize>10</textSize>
  648.         <textStyle>bold</textStyle>
  649.         <textHeight>15</textHeight>
  650.         <name>HyperActiveSoftware</name>
  651.         <script>on mouseUpsend mouseUp to btn "hyperActive"end mouseUp</script>
  652.     </part>
  653.     <part>
  654.         <id>1</id>
  655.         <type>field</type>
  656.         <visible> <true /> </visible>
  657.         <dontWrap> <false /> </dontWrap>
  658.         <dontSearch> <false /> </dontSearch>
  659.         <sharedText> <false /> </sharedText>
  660.         <fixedLineHeight> <false /> </fixedLineHeight>
  661.         <autoTab> <false /> </autoTab>
  662.         <lockText> <true /> </lockText>
  663.         <rect>
  664.             <left>24</left>
  665.             <top>77</top>
  666.             <right>491</right>
  667.             <bottom>296</bottom>
  668.         </rect>
  669.         <style>scrolling</style>
  670.         <autoSelect> <false /> </autoSelect>
  671.         <showLines> <false /> </showLines>
  672.         <wideMargins> <false /> </wideMargins>
  673.         <multipleLines> <false /> </multipleLines>
  674.         <reservedFamily> 0 </reservedFamily>
  675.         <titleWidth>0</titleWidth>
  676.         <icon>0</icon>
  677.         <textAlign>left</textAlign>
  678.         <font>Geneva</font>
  679.         <textSize>12</textSize>
  680.         <textStyle>plain</textStyle>
  681.         <textHeight>16</textHeight>
  682.         <name>Copyright</name>
  683.         <script></script>
  684.     </part>
  685.     <part>
  686.         <id>2</id>
  687.         <type>button</type>
  688.         <visible> <true /> </visible>
  689.         <reserved5> 0 </reserved5>
  690.         <reserved4> 0 </reserved4>
  691.         <reserved3> 0 </reserved3>
  692.         <reserved2> 0 </reserved2>
  693.         <reserved1> 0 </reserved1>
  694.         <enabled> <true /> </enabled>
  695.         <rect>
  696.             <left>28</left>
  697.             <top>309</top>
  698.             <right>68</right>
  699.             <bottom>336</bottom>
  700.         </rect>
  701.         <style>transparent</style>
  702.         <showName> <false /> </showName>
  703.         <highlight> <false /> </highlight>
  704.         <autoHighlight> <true /> </autoHighlight>
  705.         <sharedHighlight> <true /> </sharedHighlight>
  706.         <family>0</family>
  707.         <titleWidth>0</titleWidth>
  708.         <icon>0</icon>
  709.         <textAlign>center</textAlign>
  710.         <font>Chicago</font>
  711.         <textSize>12</textSize>
  712.         <textStyle>plain</textStyle>
  713.         <name>Back</name>
  714.         <script>on mouseUplock screengo cd "title"unlock screen with visual wipe rightend mouseUpon mouseEnterShowABalloon "Click here to return to the title card and the " ¬¨& "Table of Contents."end mouseEnteron mouseLeaveRemoveABalloonend mouseLeave</script>
  715.     </part>
  716.     <part>
  717.         <id>3</id>
  718.         <type>button</type>
  719.         <visible> <true /> </visible>
  720.         <reserved5> 0 </reserved5>
  721.         <reserved4> 0 </reserved4>
  722.         <reserved3> 0 </reserved3>
  723.         <reserved2> 0 </reserved2>
  724.         <reserved1> 0 </reserved1>
  725.         <enabled> <true /> </enabled>
  726.         <rect>
  727.             <left>450</left>
  728.             <top>309</top>
  729.             <right>488</right>
  730.             <bottom>336</bottom>
  731.         </rect>
  732.         <style>transparent</style>
  733.         <showName> <false /> </showName>
  734.         <highlight> <false /> </highlight>
  735.         <autoHighlight> <true /> </autoHighlight>
  736.         <sharedHighlight> <true /> </sharedHighlight>
  737.         <family>0</family>
  738.         <titleWidth>0</titleWidth>
  739.         <icon>0</icon>
  740.         <textAlign>center</textAlign>
  741.         <font>Chicago</font>
  742.         <textSize>12</textSize>
  743.         <textStyle>plain</textStyle>
  744.         <name>Next</name>
  745.         <script>on mouseUplock screengo nextunlock screen with visual wipe leftend mouseUpon mouseEnterShowABalloon "Click here to move forward through this stack " ¬¨& "one card at a time."end mouseEnteron mouseLeaveRemoveABalloonend mouseLeave</script>
  746.     </part>
  747.     <part>
  748.         <id>4</id>
  749.         <type>button</type>
  750.         <visible> <true /> </visible>
  751.         <reserved5> 0 </reserved5>
  752.         <reserved4> 0 </reserved4>
  753.         <reserved3> 0 </reserved3>
  754.         <reserved2> 0 </reserved2>
  755.         <reserved1> 0 </reserved1>
  756.         <enabled> <true /> </enabled>
  757.         <rect>
  758.             <left>410</left>
  759.             <top>309</top>
  760.             <right>449</right>
  761.             <bottom>336</bottom>
  762.         </rect>
  763.         <style>transparent</style>
  764.         <showName> <false /> </showName>
  765.         <highlight> <false /> </highlight>
  766.         <autoHighlight> <true /> </autoHighlight>
  767.         <sharedHighlight> <true /> </sharedHighlight>
  768.         <family>0</family>
  769.         <titleWidth>0</titleWidth>
  770.         <icon>0</icon>
  771.         <textAlign>center</textAlign>
  772.         <font>Chicago</font>
  773.         <textSize>12</textSize>
  774.         <textStyle>plain</textStyle>
  775.         <name>Prev</name>
  776.         <script>on mouseUplock screengo prevunlock screen with visual wipe rightend mouseUpon mouseEnterShowABalloon "Click here to move backward through this stack " ¬¨& "one card at a time."end mouseEnteron mouseLeaveRemoveABalloonend mouseLeave</script>
  777.     </part>
  778.     <part>
  779.         <id>5</id>
  780.         <type>button</type>
  781.         <visible> <true /> </visible>
  782.         <reserved5> 0 </reserved5>
  783.         <reserved4> 0 </reserved4>
  784.         <reserved3> 0 </reserved3>
  785.         <reserved2> 0 </reserved2>
  786.         <reserved1> 0 </reserved1>
  787.         <enabled> <true /> </enabled>
  788.         <rect>
  789.             <left>197</left>
  790.             <top>302</top>
  791.             <right>313</right>
  792.             <bottom>340</bottom>
  793.         </rect>
  794.         <style>transparent</style>
  795.         <showName> <false /> </showName>
  796.         <highlight> <false /> </highlight>
  797.         <autoHighlight> <true /> </autoHighlight>
  798.         <sharedHighlight> <true /> </sharedHighlight>
  799.         <family>0</family>
  800.         <titleWidth>0</titleWidth>
  801.         <icon>0</icon>
  802.         <textAlign>center</textAlign>
  803.         <font>Chicago</font>
  804.         <textSize>12</textSize>
  805.         <textStyle>plain</textStyle>
  806.         <name>HyperActive</name>
  807.         <script>on mouseUplock screenset the visible of cd fld "copyright" to ¬¨not the visible of cd fld "copyright"if not the visible of cd fld "copyright" then put "left" into viselse put "right" into visunlock screen with visual wipe visend mouseUpon mouseEnterShowAString 1516,,0end mouseEnteron mouseLeaveRemoveABalloonend mouseLeave</script>
  808.     </part>
  809.     <content>
  810.         <layer>card</layer>
  811.         <id>1</id>
  812.         <text><span class="style1">alloons XFCN, copyright ¬© 1991 by James P. Spencerand Seneca Software All Rights Reserved</span><span class="style2">It is my intention that this stack and the externals in it be freely distributed and used.  I mean the word "freely" literally.  I hereby grant the user a non-exclusive license to use this stack and the external resources and scripts contained in this stack in any way the user chooses provided the following conditions are complied with:The Balloons stack may be freely copied and distributed so long as the stack remains intact without changes and so long as no charge is made.  Commercial on-line services such as GEnie‚Ñ¢ and America On Line‚Ñ¢ which charge only for the time a subscriber uses the service and non-profit computer user groups are exempted from this requirement.  Other companies which make a profit by redistributing shareware and free software including specifically Educorp‚Ñ¢ are forbidden to copy or otherwise distribute the stack or any of its contents.The Balloons() and CreateStrings externals as well as any of the scripts contained in this stack may be freely used in the user's own stacks.  They also may be redistributed in the user's own stacks so long as no charge is made for those stacks, which must carry a copyright and license similar to the one contained here.  Free licenses will be granted to shareware authors on a case by case basis upon request to:Jim Spencer1280 Westminster St. Apt. 302St. Paul, MN. 55101E-Mail address: America On Line: JimSpencerPlease note that the graphics in this stack are Copyright ¬©1991 HyperActive Software and may not be copied or used except in this stack, and are not included in the license above.Thanks to John R. Powers and MacTutor magazine for the idea behind Balloons() XFCN.</span></text>
  813.     </content>
  814.     <content>
  815.         <layer>card</layer>
  816.         <id>6</id>
  817.         <text>This stack was created and designed by:HyperActive Software3712 20th Avenue SouthMinneapolis, MN 55407(612) 724-1596</text>
  818.     </content>
  819.     <name>Copyright/License</name>
  820.     <script>on closeCardshow cd fld "copyright"set the scroll of cd fld "copyright" to 0end closeCard</script>
  821. </card>
  822.  
  823.  
  824. card_2979.xml
  825. <?xml version="1.0" encoding="utf-8" ?>
  826. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  827. <card>
  828.     <id>2979</id>
  829.     <filler1>0</filler1>
  830.     <bitmap>BMAP_3836.pbm</bitmap>
  831.     <cantDelete> <false /> </cantDelete>
  832.     <showPict> <true /> </showPict>
  833.     <dontSearch> <false /> </dontSearch>
  834.     <owner>2740</owner>
  835.     <link rel="stylesheet" type="text/css" href="stylesheet_3303.css" />
  836.     <part>
  837.         <id>1</id>
  838.         <type>button</type>
  839.         <visible> <true /> </visible>
  840.         <reserved5> 0 </reserved5>
  841.         <reserved4> 0 </reserved4>
  842.         <reserved3> 0 </reserved3>
  843.         <reserved2> 0 </reserved2>
  844.         <reserved1> 0 </reserved1>
  845.         <enabled> <true /> </enabled>
  846.         <rect>
  847.             <left>41</left>
  848.             <top>154</top>
  849.             <right>256</right>
  850.             <bottom>185</bottom>
  851.         </rect>
  852.         <style>transparent</style>
  853.         <showName> <false /> </showName>
  854.         <highlight> <false /> </highlight>
  855.         <autoHighlight> <true /> </autoHighlight>
  856.         <sharedHighlight> <true /> </sharedHighlight>
  857.         <family>0</family>
  858.         <titleWidth>0</titleWidth>
  859.         <icon>0</icon>
  860.         <textAlign>center</textAlign>
  861.         <font>Chicago</font>
  862.         <textSize>12</textSize>
  863.         <textStyle>plain</textStyle>
  864.         <name>General Syntax</name>
  865.         <script>on mouseEnterShowABalloon "Click here to see general syntax information on" ¬¨&& "how to use Balloons().",,6end mouseEnteron mouseLeaveRemoveABalloonend mouseLeave</script>
  866.     </part>
  867.     <part>
  868.         <id>2</id>
  869.         <type>button</type>
  870.         <visible> <true /> </visible>
  871.         <reserved5> 0 </reserved5>
  872.         <reserved4> 0 </reserved4>
  873.         <reserved3> 0 </reserved3>
  874.         <reserved2> 0 </reserved2>
  875.         <reserved1> 0 </reserved1>
  876.         <enabled> <true /> </enabled>
  877.         <rect>
  878.             <left>41</left>
  879.             <top>185</top>
  880.             <right>255</right>
  881.             <bottom>217</bottom>
  882.         </rect>
  883.         <style>transparent</style>
  884.         <showName> <false /> </showName>
  885.         <highlight> <false /> </highlight>
  886.         <autoHighlight> <true /> </autoHighlight>
  887.         <sharedHighlight> <true /> </sharedHighlight>
  888.         <family>0</family>
  889.         <titleWidth>0</titleWidth>
  890.         <icon>0</icon>
  891.         <textAlign>center</textAlign>
  892.         <font>Chicago</font>
  893.         <textSize>12</textSize>
  894.         <textStyle>plain</textStyle>
  895.         <name>Utility Calls</name>
  896.         <script>on mouseEnterShowASTRList 1513,5,,6end mouseEnteron mouseLeaveRemoveABalloonend mouseLeave</script>
  897.     </part>
  898.     <part>
  899.         <id>3</id>
  900.         <type>button</type>
  901.         <visible> <true /> </visible>
  902.         <reserved5> 0 </reserved5>
  903.         <reserved4> 0 </reserved4>
  904.         <reserved3> 0 </reserved3>
  905.         <reserved2> 0 </reserved2>
  906.         <reserved1> 0 </reserved1>
  907.         <enabled> <true /> </enabled>
  908.         <rect>
  909.             <left>41</left>
  910.             <top>217</top>
  911.             <right>255</right>
  912.             <bottom>250</bottom>
  913.         </rect>
  914.         <style>transparent</style>
  915.         <showName> <false /> </showName>
  916.         <highlight> <false /> </highlight>
  917.         <autoHighlight> <true /> </autoHighlight>
  918.         <sharedHighlight> <true /> </sharedHighlight>
  919.         <family>0</family>
  920.         <titleWidth>0</titleWidth>
  921.         <icon>0</icon>
  922.         <textAlign>center</textAlign>
  923.         <font>Chicago</font>
  924.         <textSize>12</textSize>
  925.         <textStyle>plain</textStyle>
  926.         <name>Standard Display Calls</name>
  927.         <script>on mouseEnterShowASTRList 1513,4,,6end mouseEnteron mouseLeaveRemoveABalloonend mouseLeave</script>
  928.     </part>
  929.     <part>
  930.         <id>4</id>
  931.         <type>button</type>
  932.         <visible> <true /> </visible>
  933.         <reserved5> 0 </reserved5>
  934.         <reserved4> 0 </reserved4>
  935.         <reserved3> 0 </reserved3>
  936.         <reserved2> 0 </reserved2>
  937.         <reserved1> 0 </reserved1>
  938.         <enabled> <true /> </enabled>
  939.         <rect>
  940.             <left>256</left>
  941.             <top>185</top>
  942.             <right>472</right>
  943.             <bottom>216</bottom>
  944.         </rect>
  945.         <style>transparent</style>
  946.         <showName> <false /> </showName>
  947.         <highlight> <false /> </highlight>
  948.         <autoHighlight> <true /> </autoHighlight>
  949.         <sharedHighlight> <true /> </sharedHighlight>
  950.         <family>0</family>
  951.         <titleWidth>0</titleWidth>
  952.         <icon>0</icon>
  953.         <textAlign>center</textAlign>
  954.         <font>Chicago</font>
  955.         <textSize>12</textSize>
  956.         <textStyle>plain</textStyle>
  957.         <name>Create Strings</name>
  958.         <script>on mouseEnterShowASTRList 1513,1,,2end mouseEnteron mouseLeaveRemoveABalloonend mouseLeave</script>
  959.     </part>
  960.     <part>
  961.         <id>5</id>
  962.         <type>button</type>
  963.         <visible> <true /> </visible>
  964.         <reserved5> 0 </reserved5>
  965.         <reserved4> 0 </reserved4>
  966.         <reserved3> 0 </reserved3>
  967.         <reserved2> 0 </reserved2>
  968.         <reserved1> 0 </reserved1>
  969.         <enabled> <true /> </enabled>
  970.         <rect>
  971.             <left>255</left>
  972.             <top>154</top>
  973.             <right>472</right>
  974.             <bottom>185</bottom>
  975.         </rect>
  976.         <style>transparent</style>
  977.         <showName> <false /> </showName>
  978.         <highlight> <false /> </highlight>
  979.         <autoHighlight> <true /> </autoHighlight>
  980.         <sharedHighlight> <true /> </sharedHighlight>
  981.         <family>0</family>
  982.         <titleWidth>0</titleWidth>
  983.         <icon>0</icon>
  984.         <textAlign>center</textAlign>
  985.         <font>Chicago</font>
  986.         <textSize>12</textSize>
  987.         <textStyle>plain</textStyle>
  988.         <name>Optional Parameters</name>
  989.         <script>on mouseEnterShowASTRList 1513,3,,2end mouseEnteron mouseLeaveRemoveABalloonend mouseLeave</script>
  990.     </part>
  991.     <part>
  992.         <id>6</id>
  993.         <type>button</type>
  994.         <visible> <true /> </visible>
  995.         <reserved5> 0 </reserved5>
  996.         <reserved4> 0 </reserved4>
  997.         <reserved3> 0 </reserved3>
  998.         <reserved2> 0 </reserved2>
  999.         <reserved1> 0 </reserved1>
  1000.         <enabled> <true /> </enabled>
  1001.         <rect>
  1002.             <left>256</left>
  1003.             <top>217</top>
  1004.             <right>472</right>
  1005.             <bottom>250</bottom>
  1006.         </rect>
  1007.         <style>transparent</style>
  1008.         <showName> <false /> </showName>
  1009.         <highlight> <false /> </highlight>
  1010.         <autoHighlight> <true /> </autoHighlight>
  1011.         <sharedHighlight> <true /> </sharedHighlight>
  1012.         <family>0</family>
  1013.         <titleWidth>0</titleWidth>
  1014.         <icon>0</icon>
  1015.         <textAlign>center</textAlign>
  1016.         <font>Chicago</font>
  1017.         <textSize>12</textSize>
  1018.         <textStyle>plain</textStyle>
  1019.         <name>Error Messages/Return Values</name>
  1020.         <script>on mouseEnterShowASTRList 1513,2,,2end mouseEnteron mouseLeaveRemoveABalloonend mouseLeave</script>
  1021.     </part>
  1022.     <part>
  1023.         <id>7</id>
  1024.         <type>button</type>
  1025.         <visible> <true /> </visible>
  1026.         <reserved5> 0 </reserved5>
  1027.         <reserved4> 0 </reserved4>
  1028.         <reserved3> 0 </reserved3>
  1029.         <reserved2> 0 </reserved2>
  1030.         <reserved1> 0 </reserved1>
  1031.         <enabled> <true /> </enabled>
  1032.         <rect>
  1033.             <left>178</left>
  1034.             <top>296</top>
  1035.             <right>343</right>
  1036.             <bottom>330</bottom>
  1037.         </rect>
  1038.         <style>transparent</style>
  1039.         <showName> <false /> </showName>
  1040.         <highlight> <false /> </highlight>
  1041.         <autoHighlight> <true /> </autoHighlight>
  1042.         <sharedHighlight> <true /> </sharedHighlight>
  1043.         <family>0</family>
  1044.         <titleWidth>0</titleWidth>
  1045.         <icon>0</icon>
  1046.         <textAlign>center</textAlign>
  1047.         <font>Chicago</font>
  1048.         <textSize>12</textSize>
  1049.         <textStyle>plain</textStyle>
  1050.         <name>Copyright/License</name>
  1051.         <script>on mouseEnterput topLeft of me into tipadd 10 to item 1 of tipadd 10 to item 2 of tipput Balloons("ShowPICT", 1513, tip,6) into helpResultrepeat until "-853" is not in helpResultput Balloons("ShowPICT", 1513, tip, 6) into helpResultend repeatend mouseEnteron mouseLeaveRemoveABalloonend mouseLeave</script>
  1052.     </part>
  1053.     <part>
  1054.         <id>10</id>
  1055.         <type>button</type>
  1056.         <visible> <true /> </visible>
  1057.         <reserved5> 0 </reserved5>
  1058.         <reserved4> 0 </reserved4>
  1059.         <reserved3> 0 </reserved3>
  1060.         <reserved2> 0 </reserved2>
  1061.         <reserved1> 0 </reserved1>
  1062.         <enabled> <true /> </enabled>
  1063.         <rect>
  1064.             <left>470</left>
  1065.             <top>18</top>
  1066.             <right>501</right>
  1067.             <bottom>45</bottom>
  1068.         </rect>
  1069.         <style>transparent</style>
  1070.         <showName> <false /> </showName>
  1071.         <highlight> <false /> </highlight>
  1072.         <autoHighlight> <false /> </autoHighlight>
  1073.         <sharedHighlight> <true /> </sharedHighlight>
  1074.         <family>0</family>
  1075.         <titleWidth>0</titleWidth>
  1076.         <icon>0</icon>
  1077.         <textAlign>center</textAlign>
  1078.         <font>Chicago</font>
  1079.         <textSize>12</textSize>
  1080.         <textStyle>plain</textStyle>
  1081.         <name>On/Off</name>
  1082.         <script>on mouseDownglobal isSixif isSix then errorMsgif Balloons("isOn") thenget Balloons("Off")set the hilite of me to falseelseget Balloons("On")set the hilite of me to truemouseEnterend ifend mouseDownon mouseEnterShowAString 1513,,2end mouseEnteron mouseLeaveRemoveABalloonend mouseLeave</script>
  1083.     </part>
  1084.     <part>
  1085.         <id>11</id>
  1086.         <type>button</type>
  1087.         <visible> <true /> </visible>
  1088.         <reserved5> 0 </reserved5>
  1089.         <reserved4> 0 </reserved4>
  1090.         <reserved3> 0 </reserved3>
  1091.         <reserved2> 0 </reserved2>
  1092.         <reserved1> 0 </reserved1>
  1093.         <enabled> <true /> </enabled>
  1094.         <rect>
  1095.             <left>450</left>
  1096.             <top>309</top>
  1097.             <right>488</right>
  1098.             <bottom>336</bottom>
  1099.         </rect>
  1100.         <style>transparent</style>
  1101.         <showName> <false /> </showName>
  1102.         <highlight> <false /> </highlight>
  1103.         <autoHighlight> <true /> </autoHighlight>
  1104.         <sharedHighlight> <true /> </sharedHighlight>
  1105.         <family>0</family>
  1106.         <titleWidth>0</titleWidth>
  1107.         <icon>0</icon>
  1108.         <textAlign>center</textAlign>
  1109.         <font>Chicago</font>
  1110.         <textSize>12</textSize>
  1111.         <textStyle>plain</textStyle>
  1112.         <name>Next</name>
  1113.         <script>on mouseUplock screengo nextunlock screen with visual wipe leftend mouseUpon mouseEnterShowABalloon "Click here to move forward through this stack " ¬¨& "one card at a time."end mouseEnteron mouseLeaveRemoveABalloonend mouseLeave</script>
  1114.     </part>
  1115.     <part>
  1116.         <id>12</id>
  1117.         <type>button</type>
  1118.         <visible> <true /> </visible>
  1119.         <reserved5> 0 </reserved5>
  1120.         <reserved4> 0 </reserved4>
  1121.         <reserved3> 0 </reserved3>
  1122.         <reserved2> 0 </reserved2>
  1123.         <reserved1> 0 </reserved1>
  1124.         <enabled> <true /> </enabled>
  1125.         <rect>
  1126.             <left>42</left>
  1127.             <top>310</top>
  1128.             <right>73</right>
  1129.             <bottom>337</bottom>
  1130.         </rect>
  1131.         <style>transparent</style>
  1132.         <showName> <false /> </showName>
  1133.         <highlight> <false /> </highlight>
  1134.         <autoHighlight> <true /> </autoHighlight>
  1135.         <sharedHighlight> <true /> </sharedHighlight>
  1136.         <family>0</family>
  1137.         <titleWidth>0</titleWidth>
  1138.         <icon>0</icon>
  1139.         <textAlign>center</textAlign>
  1140.         <font>Chicago</font>
  1141.         <textSize>12</textSize>
  1142.         <textStyle>plain</textStyle>
  1143.         <name>Home</name>
  1144.         <script>on mouseUpgo homeend mouseUpon mouseEnterShowABalloon "Click here to return to the Home stack."end mouseEnteron mouseLeaveRemoveABalloonend mouseLeave</script>
  1145.     </part>
  1146.     <part>
  1147.         <id>13</id>
  1148.         <type>button</type>
  1149.         <visible> <true /> </visible>
  1150.         <reserved5> 0 </reserved5>
  1151.         <reserved4> 0 </reserved4>
  1152.         <reserved3> 0 </reserved3>
  1153.         <reserved2> 0 </reserved2>
  1154.         <reserved1> 0 </reserved1>
  1155.         <enabled> <true /> </enabled>
  1156.         <rect>
  1157.             <left>410</left>
  1158.             <top>309</top>
  1159.             <right>450</right>
  1160.             <bottom>336</bottom>
  1161.         </rect>
  1162.         <style>transparent</style>
  1163.         <showName> <false /> </showName>
  1164.         <highlight> <false /> </highlight>
  1165.         <autoHighlight> <true /> </autoHighlight>
  1166.         <sharedHighlight> <true /> </sharedHighlight>
  1167.         <family>0</family>
  1168.         <titleWidth>0</titleWidth>
  1169.         <icon>0</icon>
  1170.         <textAlign>center</textAlign>
  1171.         <font>Chicago</font>
  1172.         <textSize>12</textSize>
  1173.         <textStyle>plain</textStyle>
  1174.         <name>Prev</name>
  1175.         <script>on mouseUplock screengo prevunlock screen with visual wipe rightend mouseUpon mouseEnterShowABalloon "Click here to move backward through this stack " ¬¨& "one card at a time."end mouseEnteron mouseLeaveRemoveABalloonend mouseLeave</script>
  1176.     </part>
  1177.     <name>title</name>
  1178.     <script>on mouseUpif the name of the target contains "button" thenlock screengo cd (the short name of the target)unlock screen with visual wipe leftend ifend mouseUpon openCardglobal isSixif not isSixthen set the hilite of btn "on/off" to balloons("isOn")end openCard</script>
  1179. </card>
  1180.  
  1181.  
  1182.